package com.wzh.service;

import com.wzh.dao.Actdao;
import com.wzh.pojo.Po.Act;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import javax.annotation.Resources;
import java.util.List;

@Service
public class Actser {
    @Autowired
	private Actdao actdao;

	public boolean add(Act act) {
		return actdao.addact(act)>0;
	}

	public boolean delete(Act act) {

		return actdao.deleteact(act)>0;
	}

	public List<Act> getall(Act act) {
		return actdao.getall(act);
	}
}
